//-----------------------------------------
// 	PicOS Project
//
// 	HEPIA 2014 - Florent Gluck
//
//	Denis Voirol		Pierre Kiss
//	Ruben Magnin		Alina Stanculescu
//	Sebastien Beureux	Julien Cornut
//-----------------------------------------
//
//	picofs.h
//
//	constances definitions
//
//-----------------------------------------

#ifndef _PICOFS_H_
#define _PICOFS_H_

#define SECTOR_SIZE 512
#define BITMAP_SIZE 512
#define FILES_ENTRY_SIZE 32768
#define FILES_ENTRY_OFFSET 512
#define SECTOR_INDEX_LEN 444
#define FILE_CONTENT_SIZE 1432576
#define FILE_CONTENT_OFFSET 33280

typedef unsigned int uint32;
typedef unsigned short int uint16;

typedef struct __attribute__ ((__packed__))
{
	unsigned char attribut;	
	unsigned char uid;	
	char name[62];
	uint32 size;
	uint16 sect_index[222];
} 
file_entry;

#endif
